< previous page page_771 next page >

Page 771
Note.gif
If you have a table in your database that is approaching 255 fields in size, you should probably be more concerned about database normalization than you are with the number of fields consumed by replication. Please refer to Chapter 16, ''Database Normalization," for a complete discussion of database normalization issues.

The Effect of Database Replication on AutoNumber Fields
A typical AutoNumber field is incremented by 1 each time a record is added. When a database is made replicable, these fields become random numbers. Let's look at a quick example.
Open the database AUTONUMB.MDB found in the \\TYSDBVB5\SOURCE\DATA directory on the CD that shipped with this book. Now open the tblSupervisors table as a Dynaset. Your screen should look similar to Figure 20.11.
0771-01.jpg
Figure 20.11.
The 
AUTONUMB.MDB file before it becomes replicable.
Insert a new record and watch how the ID field increments by 1. Now you can return to the Visual Basic 5 project REPLDEMO.VBP and modify the cmdCreateMaster Click event by substituting AUTONUMB.MDB for REPLMAST.MDB. Run the project and make the AUTONUMB.MDB database replicable.

 
< previous page page_771 next page >

If you like this book, buy it!